package com.jshoperxms.controller.utils.enums;


public class InvoiceEnums {
	/**
	 * 开票类型类型
	 * 
	 * @ClassName: InvType
	 * @Description: TODO(这里用一句话描述这个类的作用)
	 * @author jcchen
	 * @date 2015年3月6日 下午10:42:19
	 *
	 */
	public enum InvoiceType {
		ZP("增值税专票", "1"), PP("增值税普票", "2");

		private String name;
		private String state;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getState() {
			return state;
		}

		public void setState(String state) {
			this.state = state;
		}

		private InvoiceType(String name, String state) {
			this.name = name;
			this.state = state;
		}

		public static String getName(String tag) {
			for (InvoiceType d : InvoiceType.values()) {
				if (d.getState().equals(tag)) {
					return d.getName();
				}
			}
			return "";
		}
	}



	public enum InvoiceStatus {
		YES("已开票", "1"), NO("未开票", "0");

		private String name;
		private String state;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getState() {
			return state;
		}

		public void setState(String state) {
			this.state = state;
		}

		private InvoiceStatus(String name, String state) {
			this.name = name;
			this.state = state;
		}

		public static String getName(String tag) {
			for (InvoiceStatus d : InvoiceStatus.values()) {
				if (d.getState().equals(tag)) {
					return d.getName();
				}
			}
			return "";
		}
	}

	
}
